package com.sky;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.annotations.Cacheable;

import java.util.Arrays;

@SpringBootApplication
@EnableTransactionManagement //开启注解方式的事务管理
@EnableScheduling // 开始SpringTask任务管理
@Slf4j
@EnableCaching
public class SkyApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(SkyApplication.class, args);
        // String[] beans = context.getBeanDefinitionNames();
        // Arrays.stream(beans).filter(b -> b.toLowerCase().contains("order")).forEach(System.out::println);
        log.info("server started");
    }
}
